﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SelfManagement.Database.POCO;

namespace SelfManagement.Web.Models.ViewModels
{
    public class NewestDailyItem
    {
        public string DailyId { get; set; }
        public DateTime Date { get; set; }
        public string TaskName { get; set; }
        public int TasksCount { get; set; }
        public string Performance { get; set; }
        public TaskStatus TaskStauts { get; set; }
    }

    public class NewestArticleItem
    {
        public string ArticleId { get; set; }
        public string Title { get; set; }
        public bool IsTop { get; set; }
        public string CategoryName { get; set; }
        public DateTime PublishTime { get; set; }
    }

    public class UserInfoItem
    {
        public string UserName { get; set; }
        public string UserFacee { get; set; }
        public string Sex { get; set; }
        public string Identity { get; set; }
        public string PersonalInfo { get; set; }
    }

    public class UserHomePageViewModel
    {
        public List<NewestDailyItem> NewestDailyItems { get; set; } = new List<NewestDailyItem>();
        public List<NewestArticleItem> NewestArticleItem { get; set; } = new List<ViewModels.NewestArticleItem>();
        public UserInfoItem UserInfo { get; set; } = new UserInfoItem();
    }
}